<template>
    <div class="navbar-wrapper">
        <div class="back">
            <slot name="back"></slot>
        </div>
        <div class="title">
            <slot name="title"></slot>
        </div>
        <div class="right">
            <slot name="right"></slot>
        </div>
    </div>
</template>

<script>
    export default {
        name: "NavBar"
    };
</script>

<style scoped lang="scss">
    @import "../assets/scss/define";
    .navbar-wrapper {
        height: $navbar-height;
        background-color: $base-color;
        // background-image: $navbar-bgColor;
        position: relative;

        > div {
            position: absolute;
            top: 0;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;

            &.back {
                left: 20px;
                width: 60px;
            }

            &.title {
                left: 100px;
            }

            &.right {
                right: 0;
                padding: 0 20px;
                > *:not(:first-child) {
                    margin-left: 15px;
                }

                .base-navbar-search {
                    width: 250px;
                }
            }
        }


    }
</style>
